﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApp1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();

            tree1.PauseLayout = true;
            AntdUI.ITask.Run(() =>
            {
                var it = new AntdUI.TreeItem("Tree1111111111111111111111111111111111111111111111111111111111");
                tree1.Items.Add(it);

                var it2 = new AntdUI.TreeItem("Tree1111111111111111111111111111111111111111111111111111111111");
                it.Sub.Add(it2);

                var it3 = new AntdUI.TreeItem("Tree1111111111111111111111111111111111111111111111111111111111");
                it2.Sub.Add(it3);

            }).ContinueWith(action =>
            {
                tree1.PauseLayout = false;
            });
        }

        private void tree1_NodeMouseClick(object sender, AntdUI.TreeSelectEventArgs e)
        {

        }
    }
}
